﻿<Window x:Class="MahApps.Metro.Controls.GlowWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:metro="clr-namespace:MahApps.Metro.Controls"
        Title="GlowWindow"
        Width="300"
        Height="300"
        WindowStyle="None"
        Background="Transparent"
        ShowActivated="False"
        ResizeMode="NoResize"
        SnapsToDevicePixels="True"
        Opacity="0"
        x:Name="glowWindow">
    <Window.Resources>
        <!-- use this storyboard for a smoother visibility -->
        <Storyboard x:Key="OpacityStoryboard">
            <DoubleAnimation BeginTime="00:00:.2" Duration="00:00:.3"
                             Storyboard.TargetProperty="(UIElement.Opacity)"
                             Storyboard.TargetName="glowWindow"
                             To="1" />
        </Storyboard>
    </Window.Resources>
    <metro:Glow x:Name="glow"
                x:FieldModifier="private" />
</Window>
